/*
 * @Author: Li Zengkun
 * @Date: 2022-09-05 10:16:52
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-07 15:02:50
 * @Description: vite 配置文件6
 */
import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [
        vue()
    ],
    dev: {
        host: "0.0.0.0"
    },
    server: {
        host: "0.0.0.0"
    },
    resolve: {
        alias: {
            '@': fileURLToPath(new URL('./src',
                import.meta.url))
        }
    },
    css: {
        preprocessorOptions: {
            less: {
                modifyVars: {
                    'arcoblue-6': '#f85959',
                    'color-bg-1': '#000000',
                },
                javascriptEnabled: true,
            }
        }
    },
})